//
//  IManager+ModulePointsShopList.m
//  RocketProject
//
//  Created by Wu Chengwei on 13-11-23.
//  Copyright (c) 2013年 Rocket. All rights reserved.
//

#import "IManager+ModulePointsShopList.h"
#import "FrameworkRelativeDefines.h"
#import "NetUrlDefines.h"
#import "RequestUtlity.h"
#import "RCPointsShopListDataModel.h"

@implementation IManager(ModulePointsShopList)

-(int64_t)requestPointsShopListInfo:(NSInteger)pn withRn:(NSInteger)rn withDelegate:(id<IManagerDelegate>)delegate{
    NSString *urlSuffix = [NSString stringWithFormat:kRCPointsShopListPrefix,pn,rn];
    
    NSString *url = [RequestUtlity getFormattedUrl:urlSuffix];
    
    KFLog(@"request url %@",url);
    return [[IDataProvider sharedInstance] asyncFetchDataWithUserInfo:url
                                                             userInfo:nil
                                                      withCachePolicy:IDataCachePolicyLocalFileAndNetwork
                                                   withDataParseClass:[RCPointsShopListDataModel class]
                                                     withDataDelegate:delegate];
}

@end
